﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.ComponentModel;
using System.Windows.Input;

namespace TMTemplate
{
	public partial class MenuItem : UserControl
	{
		public MenuItem()
		{
			InitializeComponent();
            this.MouseEnter += new MouseEventHandler((s, e) => { VisualStateManager.GoToState(this, "Enter", false); });
            this.MouseLeave += new MouseEventHandler((s, e) => { VisualStateManager.GoToState(this, "Normal", false); });
		}
		
		[Category("Common Properties")]
        public string Text
        {
            get { return RootTxt.Text;}
            set { RootTxt.Text = value; }
        }
	}
}